package com.tgy.赫夫曼树.赫夫曼编码;

import java.nio.charset.StandardCharsets;

/***
 * @ClassName: Test
 * @Description:
 * @Auther: tanggy3
 * @Date: 16:26 2023/2/20
 * @version : V1.0
 */
public class Test {
    public static void main(String[] args) {
        String aa= "英特纳雄耐尔就一定会实现";
        byte[] bytes = aa.getBytes(StandardCharsets.UTF_8);
        for (int i = 0; i < bytes.length; i++) {
            System.out.println(bytes[i]);
        }
        byte[] a = {-24,-117,-79};
        System.out.println(new String(a));

        String strByte = "10101000";
        System.out.println((byte)Integer.parseInt(strByte,2));

        System.out.println(Integer.toBinaryString(-3).toString().substring(24));
        System.out.println(Integer.toBinaryString(3));
    }
}
